//                  https://ac.nowcoder.com/acm/problem/50043






#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;

map<int, bool> a, b, c, r;

int main(void)
{
    int k, x, y, t, idx = INF, i;
    scanf("%d", &k);
    for (i = 1; i <= k; i++)
    {
        scanf("%d%d", &x, &y);
        if (idx != INF)
            continue;
        if (!a[x - y] && !b[x + y] && !c[x] && !r[y])
            a[x - y] = b[x + y] = c[x] = r[y] = 1;
        else
            idx = i;
    }
    scanf("%d", &t);
    while (t--)
    {
        scanf("%d", &i);
        if (i >= idx)
            cout << "Yes" << endl;
        else
            cout << "No" << endl;
    }

    return 0;
}